// import { delay } from 'redux-saga'
import { takeEvery, call } from 'redux-saga/effects'

import * as API from '../API/index.js'
import * as actions from '../actionTypes/'



export function* getReportData({ payload }) {
    const data = yield call(API.getReportData, {
        lessonId: payload,
    })
    console.log(data)
}

export default function* watchReports() {
    yield takeEvery(actions.GET_REPORT_DATA, getReportData)
}



// WEBPACK FOOTER //
// ./src/sagas/report.js